﻿using System.Reflection.PortableExecutable;

namespace LJ.Socket.Data;

public class SocketMessage(IDictionary<string, string?> headers, object value)
{
    public IDictionary<string, string?> Headers { get; } = headers;

    public object Value { get; } = value;

    public string GetName()
    {
        return Headers[SocketMessageHeaders.MessageName]!;
    }

   
}
